import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @description: test
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

public class Demo {
    public static void main(String[] args) {
        /*int a = 1;
        a = a++;
        System.out.println(a);*/
        /*String s1 = new StringBuilder("计算机").append("软件").toString();
        System.out.println(s1.intern() == s1);

        String s2 = new StringBuilder("ja").append("va").toString();
        System.out.println(s2.intern() == s2);*/

        /*int[] arr = new int[3];
        arr = null;
        assert arr != null ;
        System.out.println(arr.length);*/

       /* String str = "无xxx.7z";
        String pattern = "^.*?\\.(zip|rar|7z)$";

        Pattern r = Pattern.compile(pattern);
        Matcher m = r.matcher(str);
        System.out.println(m.matches());*/

        Integer[] arr = {1, 2, 3};
        Double[] arr2 = {1.0, 2.0, 3.0};
        //printArray(arr);
        //printArray(arr2);

        char a = 65535;

        //Integer number too large
        long b = 111;


        int x = 2;
        int y = 3;
        switch (x) {
            default:
                y++;
            case 3:
                y++;
            case 4:
                y++;
        }
        System.out.println("y=" + y);


    }

    /*public static <I>  printArray(I[] arr) {
        for (I i : arr) {
            System.out.println(i);
        }
        return arr;
    }*/
}
